<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>乡土卫士资讯站</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" type="text/css" href="/Public/zixun/css/base.css" />
<link rel="stylesheet" type="text/css" href="/Public/zixun/css/word.css" />
</head>
<body>
<div class="index">
    <div id="header">
    	<div class="logo"></div>
        <div class="search"><input type="text" placeholder="搜索特产"/><i></i></div>
        <div class="hot"><span>热门关键词：</span><p><a href="#">苹果</a>、<a href="#">苹果</a>、<a href="#">苹果</a>、<a href="#">苹果</a>、<a href="#">苹果</a>、<a href="#">苹果</a>、<a href="#">苹果</a>、</p></div>
    </div>
    <div class="swipePanel">
        <div class="swipe">
            <ul id="slider">
                <?php if(is_array($banner)): $i = 0; $__LIST__ = $banner;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a href="<?php echo ($vo["link"]); ?>"><img src="<?php echo ($vo["pic"]); ?>" alt='<?php echo ($vo["title"]); ?>' /></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
            <div id="pagenavi">
                <a href="javascript:void(0);" class="active">1</a> 
                <a href="javascript:void(0);">2</a>
                <a href="javascript:void(0);">3</a>
                <a href="javascript:void(0);">4</a>
            </div>
        </div>
    </div>
    <div class="icon">
    	<a href="/index.php/home/News/index/pid/1">
        	<div class="pic"><img src="/Public/zixun/img/icon01.png"/></div>
            <div class="topic">农业种植</div>
        </a>
    	<a href="/index.php/home/News/index/pid/2">
        	<div class="pic"><img src="/Public/zixun/img/icon02.png"/></div>
            <div class="topic">农业养殖</div>
        </a>
    	<a href="/index.php/home/News/index/pid/3">
        	<div class="pic"><img src="/Public/zixun/img/icon03.png"/></div>
            <div class="topic">农业机械</div>
        </a>
    	<a href="/index.php/home/News/index/pid/4">
        	<div class="pic"><img src="/Public/zixun/img/icon04.png"/></div>
            <div class="topic">农资信息</div>
        </a>
    	<a href="/index.php/home/News/index/pid/5">
        	<div class="pic"><img src="/Public/zixun/img/icon05.png"/></div>
            <div class="topic">最新政策</div>
        </a>
    	<a href="/index.php/home/Contact/">
        	<div class="pic"><img src="/Public/zixun/img/icon06.png"/></div>
            <div class="topic">联系我们</div>
        </a>
    	<a href="hot-h5.html">
        	<div class="pic"><img src="/Public/zixun/img/icon07.png"/></div>
            <div class="topic">热门推荐</div>
        </a>
    	<a href="/index.php/home/News/index/pid/44">
        	<div class="pic"><img src="/Public/zixun/img/icon08.png"/></div>
            <div class="topic">企业新闻</div>
        </a>
    </div>
    <div class="block01">
    	<h2><span>最新动态</span><a href="news.html">查看更多>></a></h2>
        <h3>Latest News</h3>
        <div class="list">
        	<ul>
                <?php if(is_array($hotnews)): $i = 0; $__LIST__ = $hotnews;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li>
                	<a href="http://zixun.xiangtws.com/Home/News/info/nid/<?php echo ($vo["id"]); ?>">
                    	<div class="pic"><img src="/Public/zixun/images/pic06.jpg"/></div>
                        <div class="intro">
                        	<h4><?php echo ($vo["title"]); ?></h4>
                            <p><?=msubstr($vo['content'],60)?></p>
                            <time>2018-07-13</time>
                        </div>
                    </a>
                </li><?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
    </div>
    <div class="midd"><img src="/Public/zixun/images/pic07.jpg"/></div>
    <div class="block01">
    	<h2><span>企业新闻</span><a href="/index.php/home/News/index/pid/44">查看更多>></a></h2>
        <h3>Company news</h3>
        <div class="list">
        	<ul>
                <?php if(is_array($qynews)): $i = 0; $__LIST__ = $qynews;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li>
                        <a href="http://zixun.xiangtws.com/Home/News/info/nid/<?php echo ($vo["id"]); ?>">
                            <div class="pic"><img src="/Public/zixun/images/pic06.jpg"/></div>
                            <div class="intro">
                                <h4><?php echo ($vo["title"]); ?></h4>
                                <p><?=msubstr($vo['content'],60)?></p>
                                <time>2018-07-13</time>
                            </div>
                        </a>
                    </li><?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
    </div>
    <div id="footer">
    	<a href="javascript:;" class="on">
        	<div class="pic"><img src="/Public/zixun/img/icon-index02.png"/></div>
            <div class="topic">首页</div>
        </a>
    	<a href="sort-h5.html">
        	<div class="pic"><img src="/Public/zixun/img/icon-sort.png"/></div>
            <div class="topic">分类</div>
        </a>
    	<a href="/index.php/home/Contact/">
        	<div class="pic"><img src="/Public/zixun/img/icon-join.png"/></div>
            <div class="topic">合作</div>
        </a>
    </div>
</div>
<script type="text/javascript" src="/Public/zixun/js/touchScroll.js"></script>
<script type="text/javascript" src="/Public/zixun/js/touchslider.js"></script>
<script type="text/javascript">
		var active = 0, as = document.getElementById('pagenavi').getElementsByTagName('a');
		for ( var i = 0; i < as.length; i++) {
			(function() {
				var j = i;
				as[i].onclick = function() {
					t.slide(j);
					return false;
				};
			})();
		}
		var t = new TouchSlider({
			id : 'slider',
			speed : 600,
			timeout : 2000,
			before : function(index) {
				as[active].className = '';
				active = index;
				as[active].className = 'active';
			}
		});
	</script>
</body>
</html>